package fr.aracore.domotique.zapi.model.impl;

import fr.aracore.domotique.zapi.model.Sensor;

public class BatSensorDescriptor extends SensorDescriptor {



	@Override
	public String tag() {
		return "bat";
	}

	@Override
	public String libelle() {
		return "battery";
	}

	@Override
	public String stateDescriptionForSensor(Sensor sensor) {
		 return ""+("Low".equals(sensor.value()) ? 0 : 1);
	}

}
